package com.ge.modules.base.service.impl;

import com.ge.modules.base.service.TbDistrictService;
import com.ge.modules.dao.TbDistrictDao;
import com.ge.modules.entity.TbDistrictEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbDistrictServiceImpl implements TbDistrictService {
    @Autowired
    private TbDistrictDao tbDistrictDao;

    @Override
    public TbDistrictEntity queryObject(Integer districtid) {
        return tbDistrictDao.queryObject(districtid);
    }

    @Override
    public List<TbDistrictEntity> queryList(Map<String, Object> map) {
        return tbDistrictDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tbDistrictDao.queryTotal(map);
    }

    @Override
    public void save(TbDistrictEntity district) {
        tbDistrictDao.save(district);
    }

    @Override
    public void update(TbDistrictEntity district) {
        tbDistrictDao.update(district);
    }

    @Override
    public void delete(Integer districtid) {
        tbDistrictDao.delete(districtid);
    }

    @Override
    public void deleteBatch(Integer[] districtids) {
        tbDistrictDao.deleteBatch(districtids);
    }

    @Override
    public List<TbDistrictEntity> getList(int cityid) {
        return tbDistrictDao.getList(cityid);
    }

}
